home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xpcom / nsIComponentLoaderManager.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  7KB  |  152 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIComponentLoaderManager.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIComponentLoaderManager_h__
  6. #define __gen_nsIComponentLoaderManager_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIFile; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIComponentLoaderManager */
  21. #define NS_ICOMPONENTLOADERMANAGER_IID_STR "fce83d37-a3c0-4e09-ad9f-6842a984dbdf"
  22.  
  23. #define NS_ICOMPONENTLOADERMANAGER_IID \
  24.   {0xfce83d37, 0xa3c0, 0x4e09, \
  25.     { 0xad, 0x9f, 0x68, 0x42, 0xa9, 0x84, 0xdb, 0xdf }}
  26.  
  27. class NS_NO_VTABLE nsIComponentLoaderManager : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICOMPONENTLOADERMANAGER_IID)
  31.  
  32.   /* boolean hasFileChanged (in nsIFile file, in string loaderString, in PRInt64 modDate); */
  33.   NS_IMETHOD HasFileChanged(nsIFile *file, const char *loaderString, PRInt64 modDate, PRBool *_retval) = 0;
  34.  
  35.   /* void saveFileInfo (in nsIFile file, in string loaderString, in PRInt64 modDate); */
  36.   NS_IMETHOD SaveFileInfo(nsIFile *file, const char *loaderString, PRInt64 modDate) = 0;
  37.  
  38.   /* void removeFileInfo (in nsIFile file, in string loaderString); */
  39.   NS_IMETHOD RemoveFileInfo(nsIFile *file, const char *loaderString) = 0;
  40.  
  41.   /* void flushPersistentStore (in boolean now); */
  42.   NS_IMETHOD FlushPersistentStore(PRBool now) = 0;
  43.  
  44.   /* string getOptionalData (in nsIFile file, in string loaderString); */
  45.   NS_IMETHOD GetOptionalData(nsIFile *file, const char *loaderString, char **_retval) = 0;
  46.  
  47.   /* void setOptionalData (in nsIFile file, in string loaderString, in string value); */
  48.   NS_IMETHOD SetOptionalData(nsIFile *file, const char *loaderString, const char *value) = 0;
  49.  
  50. };
  51.  
  52. /* Use this macro when declaring classes that implement this interface. */
  53. #define NS_DECL_NSICOMPONENTLOADERMANAGER \
  54.   NS_IMETHOD HasFileChanged(nsIFile *file, const char *loaderString, PRInt64 modDate, PRBool *_retval); \
  55.   NS_IMETHOD SaveFileInfo(nsIFile *file, const char *loaderString, PRInt64 modDate); \
  56.   NS_IMETHOD RemoveFileInfo(nsIFile *file, const char *loaderString); \
  57.   NS_IMETHOD FlushPersistentStore(PRBool now); \
  58.   NS_IMETHOD GetOptionalData(nsIFile *file, const char *loaderString, char **_retval); \
  59.   NS_IMETHOD SetOptionalData(nsIFile *file, const char *loaderString, const char *value); 
  60.  
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  62. #define NS_FORWARD_NSICOMPONENTLOADERMANAGER(_to) \
  63.   NS_IMETHOD HasFileChanged(nsIFile *file, const char *loaderString, PRInt64 modDate, PRBool *_retval) { return _to HasFileChanged(file, loaderString, modDate, _retval); } \
  64.   NS_IMETHOD SaveFileInfo(nsIFile *file, const char *loaderString, PRInt64 modDate) { return _to SaveFileInfo(file, loaderString, modDate); } \
  65.   NS_IMETHOD RemoveFileInfo(nsIFile *file, const char *loaderString) { return _to RemoveFileInfo(file, loaderString); } \
  66.   NS_IMETHOD FlushPersistentStore(PRBool now) { return _to FlushPersistentStore(now); } \
  67.   NS_IMETHOD GetOptionalData(nsIFile *file, const char *loaderString, char **_retval) { return _to GetOptionalData(file, loaderString, _retval); } \
  68.   NS_IMETHOD SetOptionalData(nsIFile *file, const char *loaderString, const char *value) { return _to SetOptionalData(file, loaderString, value); } 
  69.  
  70. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  71. #define NS_FORWARD_SAFE_NSICOMPONENTLOADERMANAGER(_to) \
  72.   NS_IMETHOD HasFileChanged(nsIFile *file, const char *loaderString, PRInt64 modDate, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasFileChanged(file, loaderString, modDate, _retval); } \
  73.   NS_IMETHOD SaveFileInfo(nsIFile *file, const char *loaderString, PRInt64 modDate) { return !_to ? NS_ERROR_NULL_POINTER : _to->SaveFileInfo(file, loaderString, modDate); } \
  74.   NS_IMETHOD RemoveFileInfo(nsIFile *file, const char *loaderString) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveFileInfo(file, loaderString); } \
  75.   NS_IMETHOD FlushPersistentStore(PRBool now) { return !_to ? NS_ERROR_NULL_POINTER : _to->FlushPersistentStore(now); } \
  76.   NS_IMETHOD GetOptionalData(nsIFile *file, const char *loaderString, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOptionalData(file, loaderString, _retval); } \
  77.   NS_IMETHOD SetOptionalData(nsIFile *file, const char *loaderString, const char *value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOptionalData(file, loaderString, value); } 
  78.  
  79. #if 0
  80. /* Use the code below as a template for the implementation class for this interface. */
  81.  
  82. /* Header file */
  83. class nsComponentLoaderManager : public nsIComponentLoaderManager
  84. {
  85. public:
  86.   NS_DECL_ISUPPORTS
  87.   NS_DECL_NSICOMPONENTLOADERMANAGER
  88.  
  89.   nsComponentLoaderManager();
  90.  
  91. private:
  92.   ~nsComponentLoaderManager();
  93.  
  94. protected:
  95.   /* additional members */
  96. };
  97.  
  98. /* Implementation file */
  99. NS_IMPL_ISUPPORTS1(nsComponentLoaderManager, nsIComponentLoaderManager)
  100.  
  101. nsComponentLoaderManager::nsComponentLoaderManager()
  102. {
  103.   /* member initializers and constructor code */
  104. }
  105.  
  106. nsComponentLoaderManager::~nsComponentLoaderManager()
  107. {
  108.   /* destructor code */
  109. }
  110.  
  111. /* boolean hasFileChanged (in nsIFile file, in string loaderString, in PRInt64 modDate); */
  112. NS_IMETHODIMP nsComponentLoaderManager::HasFileChanged(nsIFile *file, const char *loaderString, PRInt64 modDate, PRBool *_retval)
  113. {
  114.     return NS_ERROR_NOT_IMPLEMENTED;
  115. }
  116.  
  117. /* void saveFileInfo (in nsIFile file, in string loaderString, in PRInt64 modDate); */
  118. NS_IMETHODIMP nsComponentLoaderManager::SaveFileInfo(nsIFile *file, const char *loaderString, PRInt64 modDate)
  119. {
  120.     return NS_ERROR_NOT_IMPLEMENTED;
  121. }
  122.  
  123. /* void removeFileInfo (in nsIFile file, in string loaderString); */
  124. NS_IMETHODIMP nsComponentLoaderManager::RemoveFileInfo(nsIFile *file, const char *loaderString)
  125. {
  126.     return NS_ERROR_NOT_IMPLEMENTED;
  127. }
  128.  
  129. /* void flushPersistentStore (in boolean now); */
  130. NS_IMETHODIMP nsComponentLoaderManager::FlushPersistentStore(PRBool now)
  131. {
  132.     return NS_ERROR_NOT_IMPLEMENTED;
  133. }
  134.  
  135. /* string getOptionalData (in nsIFile file, in string loaderString); */
  136. NS_IMETHODIMP nsComponentLoaderManager::GetOptionalData(nsIFile *file, const char *loaderString, char **_retval)
  137. {
  138.     return NS_ERROR_NOT_IMPLEMENTED;
  139. }
  140.  
  141. /* void setOptionalData (in nsIFile file, in string loaderString, in string value); */
  142. NS_IMETHODIMP nsComponentLoaderManager::SetOptionalData(nsIFile *file, const char *loaderString, const char *value)
  143. {
  144.     return NS_ERROR_NOT_IMPLEMENTED;
  145. }
  146.  
  147. /* End of implementation class template. */
  148. #endif
  149.  
  150.  
  151. #endif /* __gen_nsIComponentLoaderManager_h__ */
  152.